// LangPage.h
 
#ifndef __LANG_PAGE_H
#define __LANG_PAGE_H

#include "../../../Common/MyFixes.h"

#include "resource.h"

class CLangPage: public CPropertyPageImpl<CLangPage>
{
public:
	enum { IDD = IDD_LANG};

	BEGIN_MSG_MAP(CLangPage)
		MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
		COMMAND_ID_HANDLER(IDC_LANG_COMBO_LANG, OnChange)
		CHAIN_MSG_MAP(CPropertyPageImpl<CLangPage>)
	END_MSG_MAP()

	LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
	LRESULT OnChange(WORD wNotifyCode, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
	{
		if (wNotifyCode == CBN_SELCHANGE)
		{
			SetModified();
		}
		return TRUE;
	}
private:
  CComboBox _langCombo;
  CStringVector _paths;
public:
  bool LangWasChanged;
  CLangPage() { LangWasChanged =  false; }
  void OnHelp();  
  int OnApply();
};

#endif
